import useUserStore from '@/store/modules/user'  
 
const user = useUserStore().GetInfo() 

export default {
  data() {
    return {
      activeName: 'profile',
      user:{}
    }
  },
  mounted() {
    this.init()
  },
  methods: {
    logout() {
      this.$store.dispatch('LogOut')
          .then(() => { location.reload() })
    },
    init(){
      this.user = user//this.$store.getters.user
    },
    handleClick(tab, event){
      this.$router.push({ path: '/account/' + tab.paneName })
    }

  }
}
